# -*- coding: utf-8 -*-
# Author: xiantingDeng
# Email: dengxianting@shxgroup.net
# Time: 22:20


# 打印矩形
# i = 1
# while i < 5:
#     j = 1
#     while j <= 5:
#         print("*",end="")
#         j += 1
#     print("")
#     i += 1


# 打印三角形
# i = 1
# while i < 5:
#     j = 1
#     while j <= i:
#         print("*",end="")
#         j += 1
#     print("")
#     i += 1

# 打印99 乘法表
# for i in range(1,10):
#     for j in range(1,i+1):
#         print(f"{i}*{j}={i*i}",end="\t")
#     print("")


# 是否剪刀布
# import random
#
# player = int(input("请输入 0 剪刀 1 石头 2 布"))
#
# computer = random.randint(0, 2)
#
# dict = {
#     0: "剪刀",
#     1: "石头",
#     2: "布"
# }
# if (player==0 and computer==2) or (player==1 and computer==0) or(player==2 and computer==1):
#     print("恭喜你，赢了呀！")
# elif player == computer:
#     print("平局哦！")
# else:
#     print("你输了，GG！")
#

# 打印 1 - 100 之间的偶数
# print([x for x in range(0, 100 + 1, 2)])

# 打印 1-100 之间20个偶数
# num = 0
# for i in range(100+1):
#     if i % 2 == 0:
#         print(i)
#     if num ==20:
#         break
#     num += 1
